import { getRequest, postRequest } from "../utils/request.js" //引用request

// 客户信息
export const infoSelfUser = data => getRequest(`/user/info`, data);

// 实名认证信息
export const handleAuth = data => postRequest(`/model/idAuth`, data);

// 模特信息
export const infoSelfModel = data => getRequest(`/model/info`, data);

// 修改个人信息
export const updateInfoSelfModel = data => postRequest(`/model/update`, data);

// 修改个人信息
export const updateInfoSelfUser = data => postRequest(`/user/update`, data);

// 客户积分
export const myIntegral = data => getRequest(`/user/getWallet`, data);

// 我的邀请
export const myInvitation = data => getRequest(`/user/getInvitationList`, data);

// 购买会员
export const purchaseMembership = () => getRequest(`/model/getMembershipConfigList`);

// 帮助中心
export const helpCenter = () => getRequest(`/user/getHelperCenterList`);

// 帮助中心详情
export const getHelperCenter = (data) => getRequest(`/user/getHelperCenter`, data);

// 反馈历史
export const feedbackHistory = data => getRequest(`/user/getFeedbackHistoryList`, data);

// 用户协议
export const userAgreemententer = () => getRequest(`/user/getUserAgreement`);

// 隐私协议
export const privacyAgreement = () => getRequest(`/user/getPrivacyAgreement`);

// 注销账号
export const del = data => getRequest(`/user/del`, data);

// 订单列表
export const orderList = data => getRequest(`/user/getOrderList`, data);

// 订单详情
export const orderDetail = data => getRequest(`/user/getOrderInfo`, data);

// 钱包详情
export const myWalletModel = data => getRequest(`/model/getWallet`, data);

// 钱包详情
export const myWalletUser = data => getRequest(`/user/getWallet`, data);

// 收益明细
export const myWalletRecord = data => getRequest(`/model/getWalletRecordList`, data);

// 反馈意见
export const feedback = data => postRequest(`/user/feedback`, data);

// 获取模特分类列表
export const modelTypeList = data => getRequest(`/model/getTypeList`, data);

// 获取模特标签列表
export const modelTagList = data => getRequest(`/model/getTagList`, data);

// 购买会员
export const buyMember = data => postRequest(`/model/payMember`, data);

// 获取提现配置
export const getWithdrawInfo = data => getRequest(`/model/getWithdraw`, data);

// 提现
export const handleWithdraw = data => postRequest(`/model/withdraw`, data);

// 提现
export const getPriceTips = () => getRequest(`/order/bookedPrice`);


